/*
 *	Copyright © 2013 Changsha Shishuo Network Technology Co., Ltd. All rights reserved.
 *	长沙市师说网络科技有限公司 版权所有
 *	http://www.shishuo.com
 */

package com.hlingsoft.kkh.dao;

import com.hlingsoft.kkh.entity.Reply;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

/**
 * 用户服务
 *
 * @author Zhang jiale
 *
 */

@Repository
public interface ReplyDao {


	/**
	 * 分享
	 *
	 * @param reply
	 * @return Integer
	 */
	public int addReply(Reply reply);


	public List<Reply> getReplyByEventCommentsId(@Param("eventCommentsId")long eventCommentsId,@Param("offset") int offset,@Param("rows")int rows);


	public List<Reply> getAllReplyByEventCommentsId(@Param("eventCommentsId")long eventCommentsId);


	public List<Reply> getReplyByEventsId(@Param("eventsId")long eventsId);

	public List<Reply> getReplyByEventsIdWithNone(@Param("eventsId")long eventsId);


	public int updateReply(Reply reply);


	public List<Reply> getReplyByAppUserIdWithNone(@Param("appUserId")long appUserId);


	public List<Reply> getReplyByEventCommentsIdWithNone(@Param("eventCommentsId")long eventCommentsId);



}
